// 定义模型(表Class 班极)
const sequelize = require('./db')
const { DataTypes } = require('sequelize')
const student = require('./student')

const Class = sequelize.define('Class', {
    name: {
        type: DataTypes.STRING,
        allowNull: false,
    },
    openDate: { // 开班时间
        type: DataTypes.DATE,
        allowNull: false,
    },
}, {
    createdAt: false,
    updatedAt: false,
    paranoid: true
})


module.exports = Class